<?php

namespace app\home\controllers;

class Index
{
    public function index()
    {
        $a = env('APP_ENV');
        echo $a;
        echo 'home index';
    }

    public function demo()
    {
        // echo 'demo';

        // $a = new \Blade();

        // dump($a);

        // $path = CACHE_PATH . 'views/';
        // $a = str_replace('/', DIRECTORY_SEPARATOR, $path);
        // dump($a);
        $title = '测试页';

        $data = compact('title');
        
        return view('demo', $data);
    }
}